# In[ ]:
from datetime import datetime
last_time = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
print(last_time + " 开始执行11")

# In[ ]:
ips = []
if ips:
    print("ips不为空")
else:
    print("ips为空")

# In[ ]:
ips = ['192.168.1.1', '192.168.1.2', '192.168.1.3']
iterips = iter(ips)

while True:
    try:
        ip = next(iterips)
        print(ip)
    except:
        print("迭代完成")
        print(ips)
        break